﻿#region Usings

using System.Web.Mvc;

#endregion

namespace xConnected.Helpers
{
    public static class ControllerExtensions
    {
        public static JsonNetResult JsonNet(this Controller controller, object data)
        {
            return new JsonNetResult {Data = data};
        }

        public static JsonNetResult JsonNet(this Controller controller, object data, JsonRequestBehavior behavior)
        {
            return new JsonNetResult { Data = data, JsonRequestBehavior = behavior };
        }
    }
}